package com.jl.mapper;

import com.jl.model.CoalitionPercentage;
import com.jl.model.resp.ExchangeResp;
import com.jl.model.resp.RebateDetailResp;
import com.jl.model.resp.RebateInfoResp;
import com.jl.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PercentageMapper extends MyMapper<CoalitionPercentage> {
    RebateInfoResp selectRebateInfo(@Param("userId")Integer userId,@Param("start") String start, @Param("end") String end);

    List<RebateDetailResp> selectRebateDetail(@Param("userId")Integer userId,@Param("start") String start, @Param("end") String end,@Param("type")String type);

    ExchangeResp selectExchange(@Param("userId")Integer userId);

    String selectFinishExchange(@Param("userId")Integer userId);
}
